package me.alex.databindingdemo;


import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

/**
 * ================================================
 * Description:
 * <p>
 * Created by Alex on 2020/12/11 0011
 * <p>
 * 页面内容介绍: DataBinding JavaBean
 * <p>
 * ================================================
 */
public class UserData extends BaseObservable {
    private String name;
    private String age;

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    @Bindable
    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
        notifyPropertyChanged(BR.age);
    }
}
